package com.priusoft.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName CAP_USER
 */
@TableName(value ="CAP_USER")
public class CapUser implements Serializable {
    /**
     * 
     */
    @TableId
    private Long operatorId;

    /**
     * 
     */
    private String tenantId;

    /**
     * 
     */
    private String userId;

    /**
     * 
     */
    private String password;

    /**
     * 
     */
    private Date invaldate;

    /**
     * 
     */
    private String userName;

    /**
     * 
     */
    private String authmode;

    /**
     * 
     */
    private String status;

    /**
     * 
     */
    private Date unlocktime;

    /**
     * 
     */
    private String menutype;

    /**
     * 
     */
    private Date lastlogin;

    /**
     * 
     */
    private Integer errcount;

    /**
     * 
     */
    private Date startdate;

    /**
     * 
     */
    private Date enddate;

    /**
     * 
     */
    private String validtime;

    /**
     * 
     */
    private String maccode;

    /**
     * 
     */
    private String ipaddress;

    /**
     * 
     */
    private String email;

    /**
     * 
     */
    private String createuser;

    /**
     * 
     */
    private Date createtime;

    /**
     * 
     */
    private Date passwordUpdateTime;

    /**
     * 
     */
    private String secretLevel;

    /**
     * 
     */
    private String isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Long getOperatorId() {
        return operatorId;
    }

    /**
     * 
     */
    public void setOperatorId(Long operatorId) {
        this.operatorId = operatorId;
    }

    /**
     * 
     */
    public String getTenantId() {
        return tenantId;
    }

    /**
     * 
     */
    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    /**
     * 
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 
     */
    public String getPassword() {
        return password;
    }

    /**
     * 
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 
     */
    public Date getInvaldate() {
        return invaldate;
    }

    /**
     * 
     */
    public void setInvaldate(Date invaldate) {
        this.invaldate = invaldate;
    }

    /**
     * 
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 
     */
    public String getAuthmode() {
        return authmode;
    }

    /**
     * 
     */
    public void setAuthmode(String authmode) {
        this.authmode = authmode;
    }

    /**
     * 
     */
    public String getStatus() {
        return status;
    }

    /**
     * 
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 
     */
    public Date getUnlocktime() {
        return unlocktime;
    }

    /**
     * 
     */
    public void setUnlocktime(Date unlocktime) {
        this.unlocktime = unlocktime;
    }

    /**
     * 
     */
    public String getMenutype() {
        return menutype;
    }

    /**
     * 
     */
    public void setMenutype(String menutype) {
        this.menutype = menutype;
    }

    /**
     * 
     */
    public Date getLastlogin() {
        return lastlogin;
    }

    /**
     * 
     */
    public void setLastlogin(Date lastlogin) {
        this.lastlogin = lastlogin;
    }

    /**
     * 
     */
    public Integer getErrcount() {
        return errcount;
    }

    /**
     * 
     */
    public void setErrcount(Integer errcount) {
        this.errcount = errcount;
    }

    /**
     * 
     */
    public Date getStartdate() {
        return startdate;
    }

    /**
     * 
     */
    public void setStartdate(Date startdate) {
        this.startdate = startdate;
    }

    /**
     * 
     */
    public Date getEnddate() {
        return enddate;
    }

    /**
     * 
     */
    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    /**
     * 
     */
    public String getValidtime() {
        return validtime;
    }

    /**
     * 
     */
    public void setValidtime(String validtime) {
        this.validtime = validtime;
    }

    /**
     * 
     */
    public String getMaccode() {
        return maccode;
    }

    /**
     * 
     */
    public void setMaccode(String maccode) {
        this.maccode = maccode;
    }

    /**
     * 
     */
    public String getIpaddress() {
        return ipaddress;
    }

    /**
     * 
     */
    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }

    /**
     * 
     */
    public String getEmail() {
        return email;
    }

    /**
     * 
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 
     */
    public String getCreateuser() {
        return createuser;
    }

    /**
     * 
     */
    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    /**
     * 
     */
    public Date getCreatetime() {
        return createtime;
    }

    /**
     * 
     */
    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    /**
     * 
     */
    public Date getPasswordUpdateTime() {
        return passwordUpdateTime;
    }

    /**
     * 
     */
    public void setPasswordUpdateTime(Date passwordUpdateTime) {
        this.passwordUpdateTime = passwordUpdateTime;
    }

    /**
     * 
     */
    public String getSecretLevel() {
        return secretLevel;
    }

    /**
     * 
     */
    public void setSecretLevel(String secretLevel) {
        this.secretLevel = secretLevel;
    }

    /**
     * 
     */
    public String getIsDelete() {
        return isDelete;
    }

    /**
     * 
     */
    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CapUser other = (CapUser) that;
        return (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getInvaldate() == null ? other.getInvaldate() == null : this.getInvaldate().equals(other.getInvaldate()))
            && (this.getUserName() == null ? other.getUserName() == null : this.getUserName().equals(other.getUserName()))
            && (this.getAuthmode() == null ? other.getAuthmode() == null : this.getAuthmode().equals(other.getAuthmode()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getUnlocktime() == null ? other.getUnlocktime() == null : this.getUnlocktime().equals(other.getUnlocktime()))
            && (this.getMenutype() == null ? other.getMenutype() == null : this.getMenutype().equals(other.getMenutype()))
            && (this.getLastlogin() == null ? other.getLastlogin() == null : this.getLastlogin().equals(other.getLastlogin()))
            && (this.getErrcount() == null ? other.getErrcount() == null : this.getErrcount().equals(other.getErrcount()))
            && (this.getStartdate() == null ? other.getStartdate() == null : this.getStartdate().equals(other.getStartdate()))
            && (this.getEnddate() == null ? other.getEnddate() == null : this.getEnddate().equals(other.getEnddate()))
            && (this.getValidtime() == null ? other.getValidtime() == null : this.getValidtime().equals(other.getValidtime()))
            && (this.getMaccode() == null ? other.getMaccode() == null : this.getMaccode().equals(other.getMaccode()))
            && (this.getIpaddress() == null ? other.getIpaddress() == null : this.getIpaddress().equals(other.getIpaddress()))
            && (this.getEmail() == null ? other.getEmail() == null : this.getEmail().equals(other.getEmail()))
            && (this.getCreateuser() == null ? other.getCreateuser() == null : this.getCreateuser().equals(other.getCreateuser()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getPasswordUpdateTime() == null ? other.getPasswordUpdateTime() == null : this.getPasswordUpdateTime().equals(other.getPasswordUpdateTime()))
            && (this.getSecretLevel() == null ? other.getSecretLevel() == null : this.getSecretLevel().equals(other.getSecretLevel()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getInvaldate() == null) ? 0 : getInvaldate().hashCode());
        result = prime * result + ((getUserName() == null) ? 0 : getUserName().hashCode());
        result = prime * result + ((getAuthmode() == null) ? 0 : getAuthmode().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getUnlocktime() == null) ? 0 : getUnlocktime().hashCode());
        result = prime * result + ((getMenutype() == null) ? 0 : getMenutype().hashCode());
        result = prime * result + ((getLastlogin() == null) ? 0 : getLastlogin().hashCode());
        result = prime * result + ((getErrcount() == null) ? 0 : getErrcount().hashCode());
        result = prime * result + ((getStartdate() == null) ? 0 : getStartdate().hashCode());
        result = prime * result + ((getEnddate() == null) ? 0 : getEnddate().hashCode());
        result = prime * result + ((getValidtime() == null) ? 0 : getValidtime().hashCode());
        result = prime * result + ((getMaccode() == null) ? 0 : getMaccode().hashCode());
        result = prime * result + ((getIpaddress() == null) ? 0 : getIpaddress().hashCode());
        result = prime * result + ((getEmail() == null) ? 0 : getEmail().hashCode());
        result = prime * result + ((getCreateuser() == null) ? 0 : getCreateuser().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getPasswordUpdateTime() == null) ? 0 : getPasswordUpdateTime().hashCode());
        result = prime * result + ((getSecretLevel() == null) ? 0 : getSecretLevel().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", operatorId=").append(operatorId);
        sb.append(", tenantId=").append(tenantId);
        sb.append(", userId=").append(userId);
        sb.append(", password=").append(password);
        sb.append(", invaldate=").append(invaldate);
        sb.append(", userName=").append(userName);
        sb.append(", authmode=").append(authmode);
        sb.append(", status=").append(status);
        sb.append(", unlocktime=").append(unlocktime);
        sb.append(", menutype=").append(menutype);
        sb.append(", lastlogin=").append(lastlogin);
        sb.append(", errcount=").append(errcount);
        sb.append(", startdate=").append(startdate);
        sb.append(", enddate=").append(enddate);
        sb.append(", validtime=").append(validtime);
        sb.append(", maccode=").append(maccode);
        sb.append(", ipaddress=").append(ipaddress);
        sb.append(", email=").append(email);
        sb.append(", createuser=").append(createuser);
        sb.append(", createtime=").append(createtime);
        sb.append(", passwordUpdateTime=").append(passwordUpdateTime);
        sb.append(", secretLevel=").append(secretLevel);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}